package org.shop.pro.config.controller;

import java.util.List;

import org.shop.pro.entity.Moneyoff;
import org.shop.pro.service.MoneyoffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class MoneyoffController {
	@Autowired
	MoneyoffService moneyoffService;
	
	@RequestMapping("moneyoff_list")
	public String moneyofflist(Model model){
		List<Moneyoff> moneyoff=moneyoffService.selectAll();
		model.addAttribute("moneyofflist",moneyoff);
		return "moneyoff_list";
	}

}
